@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './modules/list-head.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}


// table footer
.el-table__footer {
  padding: 10px 0;
}

// ckeditor
.ck-editor__editable {
  min-height: 200px;
}

// fixed footer button
.fixed--form {
  padding-bottom: 40px;
}
.fixed--footer {
  position: fixed;
  left: 0;
  bottom: 0;
  margin: 0 0 0 210px;
  padding: 10px 0;
  width: calc(100% - 210px);
  text-align: center;
  background: rgba(255,255,255,.9);
}


// diy
.diy--container {
  background-color: #eee;
  overflow: hidden;
  display: flex;
}
.diy--component {
  width: 310px;
  flex: 310px;
}
.diy--component__container {
  width: 310px;
  height: calc(100vh - 228px);
  overflow: hidden;
  overflow-y: auto;
  .el-card{
    margin-bottom: 20px;
    width: 270px;
  }
  .el-card__body {
    padding: 10px;
  }
}
.diy--component__list {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.diy--cmp__item {
  float: left;
  margin: 10px;
  padding: 15px 10px;
  width: 100px;
  list-style: none;
  text-align: center;
  font-size: 14px;
  border: 1px solid #eee;
  border-radius: 6px;

  a {
    display: block;
  }
  a:hover {
    color: $tiffany;
  }
  i {
    display: block;
    margin-bottom: 4px;
    font-size: 40px;
  }
}

.diy--phone {
  flex: 375px;
  margin-left: 30px;
  width: 375px;
  .el-card__body {
    padding: 0;
  }
}
.diy--phone__container {
  width: 375px;
  height: calc(100vh - 186px);
  overflow: hidden;
  overflow-y: auto;
}
.phone--container__header {
  position: relative;
  height: 64px;
  background: url('../assets/images/diy/head-bg.png');
  background-size: 100% auto;
}
.phone--header__title {
  position: absolute;
  left: 100px;
  bottom: 14px;
  width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.phone--content {
  height: 400px;
}
.diy--setting {
  margin-left: 30px;
  flex: 100%;
  width: 100%;
}
.diy--setting__container {
  height: calc(100vh - 226px);
  overflow: hidden;
  overflow-y: auto;

  .el-card {
    margin-bottom: 20px;
  }

}

// draggable
.draggable--container{
  margin: 0 3px 0 0;
}
.draggable--item{
  position: relative;
  width: 370px;
  // min-height: 180px;
  box-sizing: border-box;
  border: 1px dashed #ccc;
  // display: flex;
  // justify-content: center;
  // align-items: center;
  // text-align: center;
  // align-content: center;
  cursor: move;
  background-color: #fff;
  img {
    width: 100%;
  }
}
.draggable--item__ctrl {
  display: none;
  position: absolute;
  z-index: 100;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  background: $tiffany;
}
.draggable--item__text {
  color: #999;
  p {
    margin: 4px 0;
    color: #333;
    font-weight: bold;
  }
}
.draggable--item__current {
  border: 1px dashed $tiffany;

  .draggable--item__ctrl {
    display: block;
  }
}

.draggable--item__image{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  align-content: center;
  min-height: 180px;
}

.draggable--item__video {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  align-content: center;
  background-color: #000;

  i {
    position: relative;
    z-index: 10;
    color: #fff;
    font-size: 40px;
    text-shadow: 2px 3px 3px rgba(0,0,0,.6);
    background-color: #000;
    border-radius: 50%;
  }

  img {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
  }
}

.draggable--item__swipe {
  display: block;
  text-align: center;

  .draggable--item__text{
    padding-top: 50px;
  }
}

.draggable--item__foot{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  align-content: center;
  height: 60px;
}


// dialog setting
.dialog--setting {
  display: flex;
}
.dialog--setting__phone {
  flex: 200px;
  width: 200px;


}
.dialog--setting__form{
  flex: 100%;
  width: 100%;
}
.dialog--phone__container {
  width: 200px;
  height: 360px;
  border-radius: 6px;
  background: #ccc;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  align-content: center;

  img {
    width: 80%;
  }
}
